<?php
class Classes_URL {
	public function getURL($id,$title){
		return '/'.Classes_Url::replace($title).'/read/'.$id.'/';
	}
	
	public function replace($string){
		return strtolower(str_replace(array(' ','*','%','/','\'','.','!'),array('-','-','-','-','','-',''),$string));
	}
	
	public function replaceAsTitle($string){
		return strtoupper(str_replace(array('*','%','/','\'','.','-'),' ',$string));
	}
}
?>